Automatic controller for powered retractable sun visor

ABSTRACT

A system and method for controlling a vehicle sun visor that uses commonly existing onboard sensors and systems to provide all necessary inputs. The method uses GPS and solar almanac data to determine the location of the sun relative to the vehicle, driver side view mirror angle data to determine the position of the driver&#39;s eyes within the vehicle, and an existing outside light metering device to determine whether the sun is actually shining on the vehicle, and uses this information to calculate the optimum position of the sun visor. If a forward-looking camera is available on the vehicle, camera images can be used to improve the estimate of the sun position relative to the vehicle.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to automatically controlled sun visors in automobiles and, more particularly, to a system and method for controlling a vehicle sun visor that determines the location of the sun relative to the vehicle, the position of the driver's eyes within the vehicle, and whether the sun is actually shining on the vehicle to calculate the optimum position of the sun visor.

2. Discussion of the Related Art

Most vehicles are equipped with a sun visor that can be selectively flipped down from a stored position if the vehicle is traveling into a low sun angle, so that the driver is not staring directly into the sun. The sun visor is typically able to block the sun shining through the windshield, as well as through the windows. The sun visor makes the driving experience more pleasant, and also has an obvious safety value.

Systems have been developed in the art to automatically adjust the position of a sun blocker in response to a sun incident angle. For example, U.S. Pat. No. 6,811,201, titled, Automatic Sun Visor and Solar Shade System for Vehicles, issued Nov. 2, 2004 to Naik, discloses an automatic sun visor system for a vehicle that includes a light detecting apparatus for detecting sunlight incident on the face of a driver of the vehicle, and adjusts the sun visor in response to the detected sunlight on the face of the driver.

However, many of the automatic sun visor controllers available on the market require the use of expensive cameras, sensors, or other hardware dedicated to the purpose of controlling the sun visor. This discourages the use of those systems in moderately priced vehicles. A need exists for a lower cost sun visor control system, which takes advantage of commonly-available sensors and systems on a vehicle and uses them to determine the optimum position of the sun visor.

Modern vehicles sometimes include one or more cameras that provide back-up assistance, take images of the vehicle driver for determining driver drowsiness or attentiveness, provide images of the road as the vehicle is traveling for collision avoidance purposes, provide structure recognition, such as roadway signs, etc. For those applications where the camera image is analyzed for purposes such as safety warnings, it is critical to accurately calibrate the position and orientation of the camera with respect to the vehicle. Because of manufacturing tolerances, a separate end-of-line camera calibration, or aftermarket camera adjustment, must be performed on each vehicle for such things as accurate overlay of predicted vehicle path lines.

Some known camera systems do not provide camera calibration, but revert to a default value that may provide a couple of degrees of error. Other camera systems provide a pre-calibration approach where points on the camera image are hand-labeled and feature point locations are hand-measured in the vehicle coordinates, such as by providing a checker board pattern of the image. However, these calibration techniques are typically time consuming and must be performed at a service location. Therefore, if the vehicle is traveling and hits a bump or some other obstacle in the road, the camera position could be altered, and the calibration would not be accurate until the vehicle was taken to the service location to be corrected.

Camera calibration involves determining a set of parameters that relate camera image coordinates to world coordinates and vice versa. Some camera parameters, such as camera focal length, optical center, etc., are stable, while other parameters, such as camera orientation and position, are not. And even a small change in camera yaw or pitch angle relative to the vehicle can have a large influence on a system such as a lane departure warning. Therefore, what is needed is a camera calibration process that automatically calibrates camera orientation parameters as the vehicle is being driven where the vehicle-camera system continually adapts itself over time.

SUMMARY OF THE INVENTION

In accordance with the teachings of the present invention, a system and method are disclosed for controlling the position of an automatic sun visor in a vehicle. The method includes using an onboard Global Positioning System (GPS) receiver in conjunction with solar almanacs to predict the position of the sun relative to the vehicle. The GPS-based solar position can be validated by comparing it to the sun position as determined by a forward-looking onboard camera. A light-intensity detector determines if the sun is actually shining on the vehicle. If the sun is shining on the vehicle, and the sun appears low in the windshield or in a side window, then the sun visor is commanded into a position that blocks the sun from the driver's eyes.

The position of the driver side view mirror can be used to estimate the position of the driver's eyes. A driver-viewing camera, if available, can also be used to determine driver's eye position. Additionally, stored driver profile information can be used to learn driver visor position preferences for a given sun angle, and this history can be used to further improve the effectiveness of the visor positioning system.

Additional features of the present invention will become apparent from the following description and appended claims, taken in conjunction with the accompanying drawings.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is an illustration of a system for automatically positioning a sun blocker to shield a driver's face from the sun;

FIG. 2 is a block diagram of a system for determining whether the sun is actually shining on a vehicle at any given time, versus a cloudy or shaded condition;

FIG. 3 is a block diagram of a system for estimating the position of the sun relative to the vehicle using GPS and other data;

FIG. 4 is a block diagram of a system for refining the estimate of the position of the sun relative to the vehicle using both GPS data and a forward-looking camera image;

FIG. 5 illustrates how the angular position of the driver side view mirror can be used to estimate the position of the driver's eyes in the vehicle coordinate frame; and

FIGS. 6 a and 6 b are a block diagram of a system for optimizing sun visor position and calibrating the aiming direction of a forward-looking camera.

DETAILED DESCRIPTION OF THE EMBODIMENTS

The following discussion of the embodiments of the invention directed to a system and method for controlling the position of an automatic sun visor in a vehicle is merely exemplary in nature, and is in no way intended to limit the invention or its applications or uses. The embodiments below are all described in terms of a sun visor, but the systems and methods can be applied to any type of vehicle sun blocker, including traditional mechanical sun visor panels, electro-chromic glass shading techniques, and others.

As mentioned above, automatic sun visor control systems known in the art and available on the market typically require dedicated cameras, sensors, or other hardware in order to operate, thus raising the cost of the system. The present invention proposes a system and method for controlling the position of an automatic sun visor in a vehicle, using commonly existing onboard systems and sensors to provide a low-cost yet robust sun visor controller. Specifically, the present invention uses Global Positioning System (GPS) data and vehicle dynamics sensors to determine the position of the sun relative to the vehicle, a forward-looking camera to fine-tune the GPS-based sun position data, a light intensity meter to determine if the sun is actually shining on the vehicle, and driver side view mirror position or a driver-viewing camera to estimate the position of the driver's eyes to optimally position the sun visor. In addition, the calculation which compares GPS-based sun position to forward-looking camera-based sun position also yields data about the aiming calibration of the forward-looking camera.

FIG. 1 is an illustration of a system 10 for automatically positioning a sun blocker 18 to shield a vehicle driver 12. A light ray 14 from a light source such as the sun 16 is directed towards the vehicle driver 12, such as through the vehicle windshield or side window. The sun blocker 18 is positioned between the sun 16 and the driver 12 within the vehicle and causes a shadow 20 to be formed, where it is desirable to maintain the blocker 18 in a position where eyes 24 of the driver 12 are within the shadow 20. As the vehicle is driven and the position of the sun 16 moves relative to the driver, a control system 28 automatically positions the blocker 18 to provide the shadow 20 at the proper location. As will be discussed in detail below, the control system 28 receives inputs from various sources to determine the position of the sun blocker 18. The sources include a GPS receiver 30, a camera 26 and a light intensity sensor 22. The camera 26 can be any camera suitable for the purposes described herein, including low cost cameras.

FIG. 2 is a block diagram of a system 40 that determines whether the sun is actually out and shining on the vehicle at any given time as may be prevented by cloudy or shady conditions. The system 40 determines whether the automatic deployment of the sun visor is necessary. The system 40 begins with GPS position and time inputs at box 42 from the GPS receiver 30. The GPS receiver 30 provides information about the vehicle's position on earth, and the time of day and time of year. The GPS position and time inputs can be used in conjunction with a solar almanac database 44 and a solar intensity look-up table 46 to determine the predicted solar irradiation intensity. The resulting predicted intensity I_(p) provided by the look-up table 46 represents the intensity of solar irradiation that would be expected at the current vehicle location, at the current time, if there were no occlusion of the sun from the vehicle. The predicted intensity I_(p) can then be compared to an actual intensity I_(a) on line 48 by a thresholding comparator 50. The actual intensity I_(a) on the line 48 is measured by the light intensity sensor 22, such as an LED or a forward-looking camera. In the thresholding comparator 50 the determination is made that it is sunny if the actual intensity I_(a) exceeds the predicted intensity I_(p) by some threshold amount. This determination, sunny or not, is updated continuously during vehicle operation, and is used as a form of master switch to control whether the automatic sun visor positioning system is to be activated or not on line 52. If it is sunny, the sun visor controller is enabled.

FIG. 3 is a block diagram of a system 60 that determines the position of the sun 16 relative to the vehicle, where like elements to the system 40 are identified by the same reference numbers. The system 60 begins with GPS velocity inputs at box 62 from the GPS receiver 30. The GPS velocity inputs include vehicle velocity data which define the heading of the vehicle. Vehicle dynamics inputs from onboard vehicle dynamics system sensors 64 provide additional information about vehicle orientation, such as yaw rate and roll or bank angle. The GPS velocity inputs and the vehicle dynamics inputs are used in a vehicle pose estimation processor 66 to determine the current vehicle orientation in a coordinate frame which is defined as having its origin at the center of the vehicle, its X axis pointed due East, its Y axis pointed due North, and its Z axis pointed up. The vehicle orientation includes the compass heading or yaw position of the vehicle, as well as the pitch and bank angles of the vehicle relative to a horizontal plane.

Simultaneous to the calculation of the vehicle orientation by the processor 66, the position of the sun 16 is also being determined. A solar position estimation processor 68 determines the current sun ray direction in the same East-North-Up coordinate frame described previously to define the vehicle orientation. The processor 68 receives GPS position and time data from the box 42 and solar almanac data from the database 44 to calculate the solar position estimation. The vehicle orientation and the sun ray direction are then used in a coordinate transformation processor 70 to determine the GPS-based solar position in the vehicle coordinate frame at box 72. This GPS-based solar position in vehicle coordinate frame at the box 72 includes the azimuth and elevation angles of the sun relative to the vehicle, and is exactly the information needed to determine whether the sun is in a position requiring deployment of the automatic sun visor.

The following is a detailed explanation of the calculations and variables used in the system 60. The algorithm requires the following data. Global Positioning System time (GT), which is the atomic time scale implemented by the atomic clocks in the GPS ground control stations and the GPS satellites themselves. GPS time was zero at 0 h 6 Jan. 1980 and since it is not affected or altered by leap seconds, GPS is now ahead of UTC by 15 seconds. GT includes Year Y, day of year D, hour H, minute M, and second S. Here the day of the year is 32 for February 1, as an example. Longitude θ and latitude φ (in radians). Vehicle heading angle α (radians) in the horizontal plane and tilt angle η (radians). Pressure P (in millibars) and Temperature T (in C.°).

The output of the algorithm includes two angles with respect to the bore-sight of the vehicle and irradiance intensity:

-   -   1) The sun's azimuth angle (α_(G));     -   2) The refraction corrected elevation angle (e_(G)); and     -   3) The predicted extraterrestrial irradiance on the surface of         the vehicle (i.e., roof) (etrtilt).

The steps of the estimation algorithm are listed as follows, where the angles are in radians:

-   -   1) Day angle:

${{dayang} = \frac{2{\pi\left( {D - 1} \right)}}{365.0}};$

-   -    and     -   2) Extraterrestrial (top-of-atmosphere) Earth radius vector         multiplied to solar constant;         erv=1.000110+0.034221 cos(dayang)+0.00128 sin(dayang)+0.000719         cos(2dayang)+0.000077 sin(2dayang)  (1)     -   3) Universal time (in hours):

$\begin{matrix} {{{UT} = {H + \frac{M}{60} + \frac{S}{3600} + {\Delta\;{GPS}}}}\;} & (2) \end{matrix}$

-   -   4) Julian day (valid for the year 1950-2050):

$\begin{matrix} {{julday} = {32916.5 + {365\left( {Y - 1949} \right)} + \frac{Y - 1949}{4} + D + {UT}}} & (3) \end{matrix}$

-   -   5) Time used in the calculation of the ecliptic coordinates:         ectime=julday−51545.0  (4)     -   6) Mean longitude:         mnlong=4.894950+0.01720279×ectime  (5)     -   7) Mean anomaly:         mnanom=6.240041+0.0172097×ectime  (6)     -   8) Ecliptic longitude:         eclong=mnlong+0.03342 sin(mnanom)+0.0003491 sin(2nmanom)  (7)     -   9) Obliquity of the ecliptic:

$\begin{matrix} {{ecobli} = \frac{\left( {23.439 - {4.0 \times 10^{- 7}{ectime}}} \right)\pi}{180}} & (8) \end{matrix}$

-   -   10) Declination:         declin=sin⁻¹(sin(ecobli)sin(eclong))  (9)     -   11) Right ascension:         rascen=a tan 2(cos(ecobli)sin(eclong), cos(eclong))  (10)     -   12) Greenwich mean side real time:         gmst=6.697375+0.0657098242×ectime+utime  (11)     -   13) Local mean side real time:         Imst=0.261799387×gmst+θ  (12)     -   14) Hour angle: hrang=lmst−rascen;     -   15) Solar elevation angle, no atmospheric correction:         c _(z)=sin(declin)sin(φ)+cos(declin)cos(θ)cos(hrang)  (13)

$\begin{matrix} {{elevetr} = {\frac{\pi}{2} - {\cos^{- 1}\left( c_{z} \right)}}} & (14) \end{matrix}$

-   -   16) Solar azimuth angle:

$\begin{matrix} {c_{a} = \frac{{{\sin({elevetr})}{\sin(\phi)}} - {\sin({declin})}}{{\cos({elevetr})}\cos\;(\phi)}} & (15) \end{matrix}$ azim=ρ−cos⁻¹(c _(a))  (16)

-   -   17) Refraction correction: If the sun is near zenith (i.e.,         elevetr>85°), no refraction is needed. Otherwise, the correction         refcor is computed as:         t _(c)=tan(elevetr)  (17)

$\begin{matrix} {\mspace{79mu}{a_{e} = \frac{{elevetr} \times \pi}{180}}} & (18) \\ {{refcor}^{\prime} = \left\{ \begin{matrix} {\frac{58.1}{t_{c}} - \frac{0.07}{t_{e}^{3}} - \frac{0.000086}{t_{e}^{3}}} \\ {1735 + {a_{e}\left( {{- 518.2} + {a_{e}\left( {103.4 + {a_{e}\left( {{- 12.79} + {0.711a_{e}}} \right)}} \right)}} \right)}} \\ \frac{- 20.774}{t_{e}} \end{matrix} \right.} & (19) \\ {\mspace{79mu}{{refcor} = {\frac{283P}{3600 \times 1013\left( {273 + T} \right)}{refcor}^{\prime}}}} & (20) \end{matrix}$

-   -   18) The corrected elevation:         elevref=elevetr−refcor  (21)     -   19) The extraterrestrial (top-of-atmosphere) global irradiance         (etrtilt) on the tilted vehicle surface (W/m²):

$\begin{matrix} {{zenref} = {\frac{\pi}{2} - {elevref}}} & (22) \end{matrix}$ c _(z)=cos(zenref)  (23) etrn=1367×c _(z)  (24) f _(t) =c _(z) cos(η)+sin(zenref)sin(η)(cos(azim)cos(α)+sin(azim)sin(α))  (25) etrtilt=f _(t) ×etrn  (26)

-   -   20) The incident angles with respect to the vehicle frame:         α_(G) =azim−α  (27)         e _(G) =elevref−η  (28)

The angles α_(G) and e_(G) are the azimuth and elevation angles, respectively, which represent the GPS-based solar position in the vehicle coordinate frame.

FIG. 4 is a block diagram of a system 80 that provides data fusion that can be used to refine the calculated position of the sun relative to the vehicle while simultaneously calibrating the aiming direction of an onboard forward-looking camera, where like elements to the system 60 are identified by the same reference numbers. The system 80 uses GPS-based solar position in the vehicle coordinate frame at the box 72, which is determined as explained above. The GPS-based solar position in vehicle coordinate frame is sent through a vehicle-camera coordinate transformation at box 84, to yield the approximate location of the sun in the coordinates of the image plane of the forward-looking camera 26. This information can be used to isolate a small portion of the image plane of the camera 26, and within this small portion, the solar position can be determined by identifying the most highly light-saturated patch of the image. This gives the solar position in the image plane at box 86. The solar position in the image plane is sent through a camera-vehicle coordinate transformation at box 88 to return it to vehicle coordinates, where it is used in a fusion calculation processor 90. The fusion calculation processor 90 calculates an improved solar position and the extrinsic calibration parameters of the camera 26 as will be described in detail below.

The following is a detailed explanation of the fusion calculation in the processor 90. The algorithm requires the following data as the inputs. The known camera intrinsic parameters including: focal length, where the focal length is in pixels [f_(u), f_(v)]; optical center [c_(u), c_(v)]; skew coefficient defined by the angle between the x and y pixel axes is stored in the scalar α_(c); and the image distortion coefficients (radial and tangential distortions) are stored in the vector k_(c) with dimension five. Sun incident angles in the vehicle frame of azimuth (α_(G)) and elevation (e_(G)). Sun position in the image plane (the center of the saturation area): row (u_(S)) and column (v_(S)). The origin pixel locates at the bottom left corner.

The outputs of the algorithm are the improved solar position in vehicle coordinate frame, azimuth (α_(F)) and elevation (e_(F)); and the camera's extrinsic calibration parameters (i.e., the orientation angles in the vehicle frame), azimuth (α_(C)) and elevation (e_(C)).

The core part of the algorithm is Kalman filtering that simultaneously estimates the incident angles and the camera's extrinsic parameters. The state vector is defined as x=(α_(F),e_(F),α_(G),e_(G)).

The state dynamic model is: x(t+1)=x(t)+Gw  (29) Where:

$\begin{matrix} {G = \begin{bmatrix} 0 & 0 \\ 0 & 0 \\ 1 & 0 \\ 0 & 1 \end{bmatrix}} & (30) \end{matrix}$ Where x(t+1) and (x)t are the state vectors at time instants t and t+1, respectively, and w is a white Gaussian noise term distributed as w˜N(0,Q).

Let the measurement vector at time instant t be o=(α_(G),e_(G),u_(S),v_(S)) and let: x=tan(α_(G)−α_(C))  (31) y=tan(e _(G) −e _(G))  (32) r=√{square root over ((x ² +y ²))}  (33) x _(d)=(1+k _(C)(1)r ² +k _(C)(2)r ⁴ +k _(C)(5)r ⁶)x+2k _(C)(3)xy+k _(C)(4)(r ²+2x ²)  (34) y _(d)=(1+k _(C)(1)r ² +k _(C)(2)r ⁴ +k _(C)(5)r ⁶)y+k _(C)(4)(r ²+2y ²)+2k _(C)(5)xy  (35)

The measurement model is given by: α_(G)=α_(F) +v _(α)  (36) e _(G) =e _(F) +v _(e)  (37) u _(S) =f _(u)(x _(d)+α_(c) y _(d))+c _(u) +v _(u)  (38) u _(S) =f _(uy) _(d) +c _(u) +v _(u)  (39) Or in vector form as: o=h(x)+v  (40) Where v=(v_(a),v_(e),v_(u),v_(v)).

The measurement equation (40) can be linearized in the neighborhood x* by Taylor expansion as: o≈H_(t)x+h(x*)−H_(t)x*+v  (41) Where H_(t) denotes the Jacobian with respect to x near the point x* at time instant t.

In summary, the following procedure based on Kalman filtering is used to jointly estimate the incident angles and the camera's extrinsic parameters.

(1) Randomly choose small numbers to initialize the camera's extrinsic parameters α_(G) ₀ and e_(C) ₀ . Combining with the first GPS-based incident estimate

(α_(G₀), e_(C₀)), gives

x(0) = (α_(G₀), e_(G₀), α_(C₀), e_(G₀)) and choose a covariance matrix P(0).

(2) When the new measurement at time instant t arrives, we write the previous state vector as x(t−1). The predicted state at this time instant can be written as {tilde over (x)}(t)=x(t−1), and the covariance matrix {tilde over (P)}(t)=P(t−1)+GQG^(T).

(3) Let the measurement at time instant t be o. Thus, the update state vector at time instant t is e=o−h({tilde over (x)}(t)) S=H _(t) {tilde over (P)}(t)H _(t) ^(T) +R _(t) K={tilde over (P)}(t)H _(t) ^(T) S ⁻¹ {circumflex over (x)}(t)={tilde over (x)}(t)+Ke P(t)=(1−KH _(t)){tilde over (P)}(t)

(4) Go to Step 2.

Thus, the fusion calculation processor 90 yields both an improved solar position in the vehicle coordinate frame, and the camera's extrinsic calibration parameters.

FIG. 5 is an illustration of a vehicle 92 that shows how the angular position of a driver side view mirror 94 can be used to estimate the position of the eyes of a driver 96. Most modern vehicles are equipped with position encoders in the side view mirrors. These position encoders are used in systems which store seat and mirror position information in driver profiles. These seat and mirror positions can then be recalled at the push of a button, for driver number 1, driver number 2, etc. The mirror position encoders can be used to determine the driver side view mirror angle α, which is the angle in the plan view between a fore-aft vector through the driver side view mirror 94 and a vector from the driver side view mirror 94 to the driver's eyes. The driver side view mirror angle α can be calculated as α=2(θ), where θ is the angle in the plan view between a fore-aft vector through the driver side view mirror 94 and a vector normal to the mirror 94, and θ is known from the mirror position encoder. Knowing the driver side view mirror angle α, and the distance H—which is the lateral distance between the center of the driver's side view mirror 94 and the centerline of a driver's seat 98, and is fixed for a given vehicle—the distance d can be calculated as d=H/tan(α). The distance d then represents the fore-aft distance from the driver side view mirror 94 to the driver's eyes, and can be used to compute a vector from the driver's eyes to the sun 16 in vehicle coordinates.

An alternate method of determining the position of the driver's eyes is to use a driver-viewing camera, for vehicles so equipped. Technology for detecting the eyes of the vehicle driver 96 via images from a driver-viewing camera is known in the art, and will not be explained further here. If the driver's eye position information is available from a driver-viewing camera, then it can be used in conjunction with or in place of the driver's eye position estimated from the driver's side view mirror position.

FIGS. 6 a and 6 b are a block diagram of a system 100 for optimizing the sun visor position and calibrating the aiming of the forward-looking camera 26, where like elements to the systems 10, 40, 60, and 80 have the same reference number. Driver profile information is stored in a driver profile database 102, and recalled through a profile retrieval 104. The profile retrieval 104 can be triggered by the driver pressing a button to identify himself or herself as driver number 1, driver number 2, etc., or the profile retrieval 104 can be triggered by some other sort of smart system such as biometric data, or a Radio Frequency ID (RFID) tag. The profile retrieval 104 provides information about driver identification to a learning module 106 which can be used to make final adjustments to the visor position if necessary. The profile retrieval 104 also adjusts driver side view mirror settings, and this information goes to a driver's eye position estimator 108, which works as described above. The driver's eye position estimator 108 can also receive input from a driver-viewing camera 120, if such a camera is available. The output of the driver's eye position estimator goes to a controller 110.

The solar position estimator 68 and the vehicle pose estimator 66, also described above, are used to determine an estimated solar position in vehicle coordinate frame at the box 72 based on GPS input. In a very low cost embodiment, the GPS-based solar position can be used directly by the controller 110. In another embodiment, in a vehicle equipped with the forward-looking camera 26, the fusion processor 90 is used to calculate an improved solar position as described previously. The solar position, either GPS-based or fusion-calculated, is sent to the controller 110. As described previously, the fusion processor 90 also calculates the camera's extrinsic calibration parameters, which can be used to improve the accuracy of any other function for which the forward-looking camera 26 is used—such as lane departure warnings, and object detection. Testing of a prototype system designed according to the disclosed method has shown that the camera's extrinsic calibration parameters, the azimuth and elevation angles of the camera's true aiming direction relative to the vehicle bore-sight or straight-ahead vector, converge to the correct values as time goes by during vehicle operation. The calibration parameters can be stored in a designated memory location of an onboard system, and used as input to adjust the images of the camera 26 as used for any other function.

The shade detection & thresholding processor 50, described above, is also operating and sending its output—sunny or shady—to the controller 110. Given the three inputs—driver's eye position, solar position, and sunny vs. shady—the controller 110 can determine what action, if any, should be applied to the sun visor.

The output of the controller 110 is twofold; first, a low sun assessment 112 indicating whether the sun is shining on the vehicle and in a position requiring the visor to be deployed; and second, a system desired visor position on line 114. If the low sun assessment 112 is No, then no visor deployment is commanded, and the controller continues to operate on a prescribed time cycle as shown in oval 116. If the low sun assessment 112 is Yes, then the controller 110 activates a sun visor actuator 118 based on the system desired visor position on the line 114.

It is possible for the driver to manually override the sun visor actuator 118 and move the visor to different position. Any such driver imposed visor position on line 122 is communicated to the learning module 106, which cumulatively stores this data along with the outputs of the profile retrieval 104 and the controller 110. The learning module 106 uses this data collectively to determine whether the current driver, in similar solar position conditions, has set a driver imposed visor position on line 122 which is different than the system desired visor position on the line 114. If so, then the difference between the driver imposed visor position on line 118 and the system desired visor position on the line 114 is sent to the controller 110, and is used to adjust the system desired visor position on the line 114. The system 100 continues to operate on a prescribed time cycle as long as the vehicle is running.

Depending on the type of systems and sensors available on any given vehicle, the methods disclosed above can provide capabilities ranging from a very low cost automatic sun visor positioning controller to a very robust sun visor controller and auto-calibrating forward-looking camera system.

The foregoing discussion discloses and describes merely exemplary embodiments of the present invention. One skilled in the art will readily recognize from such discussion and from the accompanying drawings and claims that various changes, modifications and variations can be made therein without departing from the spirit and scope of the invention as defined in the following claims. 

1. A method for automatically controlling a vehicle sun blocker, said method comprising: determining the position of the sun relative to the vehicle, including using solar position information from a Global Positioning System receiver and a solar almanac database and solar position information from a forward-looking camera onboard the vehicle in a Kalman filtering routine to determine the position of the sun relative to the vehicle; estimating the position of eyes of a vehicle driver, including using an angular position of a driver side view mirror; and deploying the sun blocker in a position between the sun and the driver's eyes.
 2. The method according to claim 1 further comprising measuring the intensity of sun light on the vehicle, determining whether the vehicle is in a sunny location or a shaded location, and deploying the sun blocker only if the vehicle is in a sunny location.
 3. The method according to claim 1 wherein estimating the position of the vehicle driver's eyes includes using images from a driver-viewing camera.
 4. The method according to claim 1 further comprising allowing the vehicle driver to manually override the position of the sun blocker.
 5. The method according the claim 1 further comprising using information from a previous driver imposed sun blocker position to update the position of the sun blocker.
 6. A system for automatically controlling a sun blocker for a vehicle, said system comprising: a solar position estimator which uses input from a Global Positioning System receiver and a solar almanac database and input from a forward-looking camera in a Kalman filtering algorithm for estimating the position of the sun relative to the vehicle; a driver's eye position estimator which uses input from a driver side view mirror position encoder for estimating the position of eyes of a driver within the vehicle; a shade detection module for determining whether the vehicle is currently in a sunny location or a shaded location; a controller for determining a location to position the sun blocker in response to inputs from the solar position estimator, the driver's eye position estimator, and the shade detection module; and an actuator for positioning the sun blocker as determined by the controller.
 7. The system according to claim 6 further comprising a learning module, said learning module using information about a driver imposed sun blocker position to revise the location to position the sun blocker as determined by the controller.
 8. The system according to claim 6 wherein the sun blocker is a mechanical sun visor.
 9. The system according to claim 6 wherein the sun blocker is an electro-chromic glass shading system.
 10. A system for automatically controlling a vehicle sun blocker, said system comprising: a solar position estimator which uses Global Positioning System data and a solar almanac database to determine the position of the sun relative to the vehicle; a driver's eye position estimator which uses data from a driver side view mirror position encoder to estimate the location of a driver's eyes; a shade detection module which uses solar irradiation intensity data to determine whether the vehicle is in a sunny location or a shaded location; a controller for determining a location to position the sun blocker in response to inputs from the solar position estimator, the driver's eye position estimator, and the shade detection module; an actuator for positioning the sun blocker as determined by the controller; and a learning module, said learning module using information about a driver imposed sun blocker position to revise the location to position the sun blocker as determined by the controller.
 11. The system according to claim 10 wherein the solar position estimator uses additional input from a forward-looking camera and uses the Global Positioning System data, the solar almanac database, and the input from a forward-looking camera in a Kalman filtering algorithm to determine the solar position. 